﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace ServiceInfrastructure.Models.Exceptions
{
    [DataContract]
    public class BusinessFault
    {
        [DataMember(Order = 1)]
        public string Message { get; set; }

        [DataMember(Order = 2)]
        public IEnumerable<BusinessFaultDetails> Details { get; set; }

        public BusinessFault(string message, IEnumerable<BusinessFaultDetails> details)
        {
            Details = details;
            Message = message;
        }

        public BusinessFault()
        {}
    }
}
